<?php
use think\facade\Route;
// 1908080121李定邦、1902030115李龙烽
// 路由定义文件
Route::any('login$', 'admin/login')->name('admin_login');
Route::get('index', 'Index/index');
Route::get('forum$', 'Index/forum')->name('admin_forum');
Route::any('password', 'admin/password')->name('admin_password');
Route::any('logout$', 'Admin/logout')->name('admin_logout');
Route::get('forum/detail/<mid>$', 'Index/forumDetail');
Route::get('forum/delete', 'Index/forumDelete');
Route::get('res/list/<mid>$', 'Index/reslist');
Route::get('res/delete', 'Index/resDelete');

Route::get('user/list$', 'user/index');
Route::any('user/update/<unick?>', 'user/update');

Route::get('sec/list$', 'Section/index');
Route::any('sec/update/<sid?>', 'Section/update');
Route::any('sec/add$', 'Section/add');
Route::get('sec/delete$', 'Section/delete');

//回收站管理
Route::any('sec/rec$', 'SectionRec/index'); //板块-列表
Route::any('sec/rec/add$', 'SectionRec/add'); //板块-添加
Route::get('sec/rec/delete$', 'SectionRec/delete'); //板块-删除
Route::get('sec/rec/normal$', 'SectionRec/normal'); //板块-恢复

Route::get('forum/rec$', 'ForumRec/index'); //帖子-列表
Route::any('forum/rec/add$', 'ForumRec/add'); //帖子-添加
Route::get('forum/rec/delete$', 'ForumRec/delete'); //帖子-删除
Route::get('forum/rec/normal$', 'ForumRec/normal'); //帖子-恢复

Route::get('res/rec$', 'ResRec/index'); //回复-列表
Route::any('res/rec/add$', 'ResRec/add'); //回复-添加
Route::get('res/rec/delete$', 'ResRec/delete'); //回复-删除
Route::get('res/rec/normal$', 'ResRec/normal'); //回复-恢复

Route::miss('Error/miss');
?>